<!--<script type="text/javascript">
    $(function() {
        $("table#data").tablesorter({headers: {
            1: {lockedOrder: 2},
            4: {lockedOrder: 2},
        }});       
    });
</script>-->
<?
	$attributes = array('class' => 'email', 'id' => 'checknew');
	echo form_open('banner/dels_bannermain', $attributes);
?>

<input type="hidden" name="page" value="<?=(int)$this->uri->segment('3')?>">
<table width="100%" class="admindata" id="data">
    <thead>
        <tr>
            <th colspan="5" class="head"> <input type="submit" onClick="return verify_del();" name="btn_submit" value="Xóa">
                Hiện có
                <?=$num?>
                banner
                <?=$pagination?>
            </th>
        </tr>
        <tr>
            <th width="2%" class="checkbox"><input type="checkbox" name="sa" id="sa" onClick="check_chose('sa', 'ar_id[]', 'checknew')" /></th>
            <th width="2%">ID</th>
            <th width="19%">Hình ảnh</th>
            <th width="68%">Tiêu đề</th>
            <!--<th width="13%" class="publish">Tỉnh thành</th>-->
            <th width="9%" class="publish">Chức năng</th>
        </tr>
    </thead>
    <tbody>
        <?
            $k=1;
            foreach($list as $rs):
		?>
        <tr class="row<?=$k?>">
            <td><input type="checkbox" name="ar_id[]" value="<?=$rs->BannerID?>"></td>
            <td class="{sorter:'metadata'}"><?=$rs->BannerID?></td>
            <td><img src="<?=base_url_site()?>uploads/images/<?=$rs->BannerImg?>" width="100px" /></td>
            <td><?=$rs->BannerTitle?></td>
            <!--<td align="center"><?=($rs->TownID==1) ? "Hồ Chí Minh" : " Hà Nội"?></td>-->
            <td align="center"><?=icon_edit('banner/edit_bannermain/'.$rs->BannerID)?>
                <span id="publish<?=$rs->BannerID?>"><?=icon_active("'bannermain'","'BannerID'",$rs->BannerID,$rs->bl_active)?></span>
                <?=icon_del('banner/del_bannermain/'.$rs->BannerID.'/'.(int)$this->uri->segment(4))?></td>
        </tr>
        <?
            $k=1-$k;
            endforeach;?>
    </tbody>
    <tfoot>
    <td colspan="5"><input type="submit" onClick="return verify_del();" name="btn_submit" value="Xóa">
            Hiện có
            <?=$num?>
            banner
            <?=$pagination?></td>
        <td width="0%"></tfoot>
</table>
<?=form_close()?>
